package com.choosefine.it.common.exception;

import com.choosefine.it.common.def.ResultCode;

/**
 * 自定义异常类，用于直接返回带错误编码的exception
 * 
 * @desc
 * @author 戚羿辰
 * @Date 2017/01/07
 */
public class RespExcption extends RuntimeException {

	private static final long	serialVersionUID	= 5390323631004190156L;

	private int					code				= ResultCode.FAILED;
	private String				message				= ResultCode.MSG_PARAMS_NULL;

	public RespExcption() {
	}

	public RespExcption(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
